<template>
  <el-carousel indicator-position="outside">
    <el-carousel-item v-for="(item, index) in banners" :key="index">
      <img class="images" :src="item.imgUrl" />
    </el-carousel-item>
  </el-carousel>
</template>

<script>
import luan from "@/assets/num全.jpg";
import mouse from "@/assets/404_images/num_2.jpg";
import yellow from "@/assets/404_images/num_3.jpg";
export default {
  data() {
    return {
      banners: [{ imgUrl: luan }, { imgUrl: mouse }, { imgUrl: yellow }]
    };
  }
};
</script>
<style>
.el-carousel__item h3 {
  color: #475669;
  font-size: 18px;
  opacity: 0.75;
  line-height: 300px;
  margin: 0;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}
.images {
  height: 100%;
  width: 100%;
}
</style>
